import {request} from "@/network/request";

//分行专区管理
//列表
export const BranchList=(params)=>{
    return request({
        url:"/api/boss/company_hot/list",
        method:'get',
        params
    })
}

//新增
export const BranchStore=(data)=>{
    return request({
        url:"/api/boss/company_hot/store",
        method:'post',
        data
    })
}

//编辑
export const BranchUpdate=(data,id)=>{
    return request({
        url:"/api/boss/company_hot/update/"+id,
        method:'put',
        data
    })
}

//删除
export const BranchDelete=(id)=>{
    return request({
        url:"/api/boss/company_hot/delete/"+id,
        method:'delete',
    })
}
//图片上传
export const BranchUpload=(data)=>{
    return request({
        url:"/api/boss/company/logo/upload",
        method:'post',
        data,
        headers: {
            'content-type': 'multipart/form-data'
        }
    })
}
//--------------------------------------------

//浏览记录管理
//获取数据列表

export const GetBrowseList=(params)=>{
    return request({
        url:'/api/boss/browse/getBrowseList',
        method:'post',
        params
    })
}